import cv2 #opencv读取的格式是BGR
import matplotlib.pyplot as plt
import numpy as np 

img_path = "/Users/mac/Documents/Learning/LearningOpencv/datasets/1.jpg"

img = cv2.imread(img_path)
res = cv2.resize(img, (0, 0), fx=1, fy=3)


print(img.shape)
print(res.shape)
cv2.imshow("img", img)
cv2.imshow("res", res)
cv2.waitKey(0)